<form class="layui-form layui-col-md11" lay-filter="tpl_goods{$goods_sign}" action="{:url('Goods/saveData')}">
	<input type="hidden" name="goods_sign" class="layui-input" />
	<input type="hidden" name="goods_id" class="layui-input" />
	<input type="hidden" name="callet_juncai" value="" />
	<input type="hidden" name="is_supplier" value="1" />
	<input type="hidden" name="is_audit" value="true" />
	<input type="hidden" name="audit_state" value="2" />
	<style>.addRedStar:after {content: '*';color: red;font-size: 20px;vertical-align: middle;}
	.zhushi{color: #999; line-height:40px;}
	</style>

<div class="layui-form-item">
 <label class="layui-form-label"><font style="color:red;font-size:20px;">*</font>为必填项；</label>

 <div class="layui-input-inline"><font class="zhushi">用型号查找（若已有产品，请勿重复提交）</font></div>
  	</div>
	<div class="layui-form-item">
	   
		<label class="layui-form-label addRedStar">产品分类</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
		<p><font class="zhushi">无法选到明确分类的产品，不可以新增上架（不应选含糊擦边的分类，新增也审核不过）</font></p>
		<div class="layui-input-inline">
			<select name="category_sign1" lay-verify="required" id="category_level1_{$goods_sign}" lay-filter="category_level1_{$goods_sign}" lay-search>
			</select>
		</div>
		<div class="layui-input-inline">
			<select name="category_sign2" lay-verify="required" id="category_level2_{$goods_sign}" lay-filter="category_level2_{$goods_sign}" lay-search>
			</select>
		</div>
		<div class="layui-input-inline">
			<select name="category_sign3" lay-verify="required" id="category_level3_{$goods_sign}" lay-filter="category_level3_{$goods_sign}" lay-search>
			</select>
		</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">品牌</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
		    <p><font class="zhushi">没有的品牌，请在群里联系上架人员喻萍添加品牌</font></p>
		    
		<div class="layui-input-inline">
			<select name="brand_sign" id="goods_brand_{$goods_sign}" lay-verify="required" lay-filter="goods_brand_{$goods_sign}" lay-search>
			</select>
		</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">商品名称</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="goods_name" lay-verify="required" placeholder="【所填写的不是最终显示名称】名称将由平台审核后自动生成（在所填写的参数中提取组合）" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item" style="display: none;">
		<label class="layui-form-label">子标题</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="goods_son_name"  placeholder="请输入商品子标题" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">商品型号</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
		<p><font class="zhushi" style="line-height:30px;">商品型号：厂家提供的【型号或货号】：不能是电商编码或SKU码；不能有文字</font></p>
		<div class="layui-input-inline">
			<input type="text" name="goods_model" lay-verify="required" placeholder="英文+数字，不可出现汉字" autocomplete="off" class="layui-input" onkeyup="this.value=check(this.value)">
		</div>
		<div class="layui-form-mid layui-word-aux" style="padding-top: 4px!important;">
			<button class="layui-btn layui-btn-normal layui-btn-sm chk_goods_model" type="button">验证型号</button>
		</div>
		<div class="layui-form-mid layui-word-aux">
			
		</div>
		</div>
		
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">商品编号</label>
		<div class="layui-input-inline">
			<input type="text" name="goods_sku"lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly="readonly"  style="width:60%; display:inline;"><font class="zhushi">自动生成</font>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">电商链接</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
		    <p><font class="zhushi" >至少3条链接（建议4-5条链接，以备军网计入无效链接导致审核失败），分别为京东、国美、苏宁及各大政采商城，尽量提供不同平台链接（例：京东、A/B/C/D政采，若需上架政采商城，请联系区域管理员）</font></p>
			<input type="text" name="ziying_url" lay-verify="required" placeholder="提供3条链接，用英文,隔开" autocomplete="off" class="layui-input">
		</div>
	</div>
		<div class="layui-form-item">
		<label class="layui-form-label addRedStar">推送类型</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
		<p><font class="zhushi">售价1万元以下的可选自选库或重点库，1万元以上必须上架重点库</font></p>
		<div class="layui-input-inline">
			<select name="is_zhongdian" lay-verify="required" >
				<option value="0">自选产品</option>
				<option value="1">重点产品</option>
			</select>
		</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">推送方式</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
		<p><font class="zhushi">首次推送：商品新增；审核通过后信息修改：商品信息更新</font></p>
		<div class="layui-input-inline">
			<select name="jun_update" lay-verify="required">
				<option value="1" selected>商品新增</option>
				<option value="2">商品信息更新</option>
				<option value="3">图片更新</option>
				<option value="4">商品上架</option>
				<option value="5">商品下架</option>
				<option value="6">价格更新</option>
			</select>
		</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">商品单位</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
		<p><font class="zhushi">例如“台”“个”“盒”</font></p>
		<div class="layui-input-inline">
			<input type="text" name="goods_unit" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		</div>
		</div>
	</div>
<!--	<div class="layui-form-item">
		<label class="layui-form-label">厂商</label>
		<div class="layui-input-inline">
			<input type="text" name="product_firm" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">商品产地</label>
		<div class="layui-input-inline">
			<input type="text" name="product_area" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item" style="display: none;">
		<label class="layui-form-label">企业规模</label>
		<div class="layui-input-inline">
			<select name="guimo" lay-filter="goods_guimo_{$goods_sign}">
				<option value="99" selected="">其他</option>
				<option value="20">中型企业</option>
				<option value="50">小微企业</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item" style="display: none;">
		<label class="layui-form-label">企业申明函地址</label>
		<div class="layui-input-inline">
			<input type="text" name="shenming" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item" style="display: none;">
		<label class="layui-form-label">条形码</label>
		<div class="layui-input-inline">
			<input type="text" name="upc" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">关键词</label>
		<div class="layui-input-block layui-col-md8 margin-left0 ">
			<input type="text" name="goods_keywords" placeholder="使用','分割" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">描述</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<textarea name="goods_intro" class="layui-textarea"></textarea>
		</div>
	</div>
			<div class="layui-form-item">
			<label class="layui-form-label">包装清单</label>
			<div class="layui-input-block layui-col-md8 margin-left0">
				<textarea name="packing_list" placeholder="包装项*数量" class="layui-textarea"></textarea>
			</div>
			<div>
			<div class="layui-form-mid layui-word-aux">每行一个包装清单 格式（包装项*数量）</div>
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">销售属性</label>
			<div class="layui-input-block">
				<blockquote class="layui-elem-quote layui-quote-nm layui-form-pane" id="sale_attr{$goods_sign}">
					<div class="view_box"></div>
					<button type="button" id="sale_attr_pop_down{$goods_sign}" class="layui-btn layui-btn-normal layui-btn-sm"><i class="layui-icon layui-icon-add-1"></i>新增属性</button>
				</blockquote>
			</div>
		</div>
	-->
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">商品图片<br /><span style="font-size: 12px; color: #999999;">可拖动排序</span></label>
		<div class="layui-input-block">
		    <p><font class="zhushi">至少三张主图，大小为800*800，禁止带店铺或其他标志信息，至少有一张图，显示产品全貌</font></p>
			<blockquote class="layui-elem-quote layui-quote-nm">
			    
				<div class="layui-upload-list layui-upload-list-goods item_container" id="layui-upload-list{$goods_sign}">
					<ul>
						
					</ul>
				</div>
				<div class="layui-upload-drag goods_pictures_upload" id="goods_pictures_upload{$goods_sign}">
					<i class="layui-icon layui-icon-upload"></i>
					<p>点击或拖拽上传</p>
				</div>
				<div style="clear: both;">

				</div>
			</blockquote>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label addRedStar">销售价格<a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="site_data{$goods_sign}" data-title="分站价格"><i class="layui-icon layui-icon-snowflake"></i></a></label>
			<div class="layui-input-block">
<p><font class="zhushi">不可与市场价差距太大，首次上架库存限制为0，平台会出参考价。<span style="color:#ff0000; font-weight:bolder;">请填写真实成本，后续用以报价核算</span></font></p>
				<blockquote class="layui-elem-quote layui-quote-nm layui-form-pane" id="sale_spu{$goods_sign}">
                
				</blockquote>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label addRedStar">商品属性</label>
			<div class="layui-input-block">
			    <p><font class="zhushi">根据链接，如实填写，相关证书若无请填写无，日期填写格式1990-01-01</font></p>
				<blockquote class="layui-elem-quote layui-quote-nm" id="goods_attr{$goods_sign}">
					请选择分类
				</blockquote>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">引用属性</label>
			<div class="layui-input-inline">
				<input type="checkbox" lay-text="是|否" lay-filter="quote_option" lay-skin="switch">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label addRedStar">详细信息</label>
			<div class="layui-input-block">
			    <p><font class="zhushi">关键字：“图片及文字中不可出现敏感词：windows10、店铺信息、可选购、按需搭配、可协助安装、以实际到货为准等不确定性字眼、最大、最小、惠普、京东、自营、京东自营、西域定制、苏宁、宏志、可定制、联系客服<br>
详情页：售后服务、推广、优惠、特供、专供、奢侈、涉密、人脸识别、信息采集、自动上传、电子档案、收费标准、苹果相关、卫星定位、执勤、secom、Mac OS等和商品无关的店铺或其他销售渠道信息、售后电话等信息”【有以上字段100％审核不过】<br>
文字详情加详情图片，文字详情可复制京东链接下商品介绍和规格包装，电脑等详情较多只写主要参数，图片宽度均800左右，至少3张</font></p>
				<textarea name="goods_content" id="goods_content{$goods_sign}"></textarea>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label addRedStar">是否节能</label>
			<div class="layui-input-block layui-col-md8 margin-left0">
			<p><font class="zhushi">如实填写</font></p>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_energy" lay-text="是|否" lay-skin="switch">
			</div>
			</div>
		</div>
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">商品重量</label>
			<div class="layui-input-inline layui-input-number">
				<input type="number" value="0" name="weight" lay-verify="required|number" placeholder="" autocomplete="off" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">单位：克</div>
		</div>
	<!--	<div class="layui-form-item" >
			<label class="layui-form-label">是否包邮</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_shopping" lay-text="是|否" checked lay-skin="switch">
			</div>
		</div>
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">商品类型</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_real" lay-text="实物|虚拟" checked lay-skin="switch">
			</div>
		</div>
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">是否需要安装</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_install" lay-text="需要|不需要" lay-skin="switch">
			</div>
		</div>
		
		
		<div class="layui-form-item">
			<label class="layui-form-label">节能证书编号</label>
			<div class="layui-input-inline">
				<input type="text" name="energy_cert_no" placeholder="" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">节能证书地址</label>
			<div class="layui-input-inline">
				<input type="text" name="energy_cert_image" placeholder="" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">节能证书有效期</label>
			<div class="layui-input-inline">
				<input type="text" name="energy_cert_indate" placeholder="" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否环保</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_environmental" lay-text="是|否" lay-skin="switch">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">环保证书编号</label>
			<div class="layui-input-inline">
				<input type="text" name="environment_protect_cert_no" placeholder="" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">环保证书地址</label>
			<div class="layui-input-inline">
				<input type="text" name="environment_protect_cert_image" placeholder="" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">环保证书有效期</label>
			<div class="layui-input-inline">
				<input type="text" name="environment_protect_cert_indate" placeholder="" autocomplete="off" class="layui-input">
			</div>
		</div>
		-->
		<div class="layui-form-item">
			<input type="hidden" name="last_sale_state" />
			<label class="layui-form-label">销售状态</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="sale_state" lay-text="销售|下架" checked lay-skin="switch">
			</div>
		</div>
		
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_goods">保存数据</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				<font class="zhushi">若有问题，可咨询上架人员，电话：13294028812</font>
			</div>
		</div>
</form>	
<script src="/static/ueditor/ueditor.all.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/ueditor/lang/zh-cn/zh-cn.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/goods/drag.js" type="text/javascript" charset="utf-8"></script>
<script>
	// 赋值
	var goods_sign = "{$goods_sign}";
	var goods_form_value = {$data};
	var category_select_uri = "{:url('Category/ajaxCategory')}";
	var brand_select_uri = "{:url('Brand/allList')}";
	var attr_select_uri = "{:url('Attr/ajaxList')}";
	var sale_uri = "{:url('Sale/formTpl',array('goods_sign'=>$goods_sign))}";
	var um = UE.getEditor('goods_content{$goods_sign}');
	var chk_goods_model_uri = "{:url('Goods/chkModel')}";
	var goods_form_url = "{:url('goods/tplForm')}";
	var site_data_url = "{:url('goods/siteData')}";
	var push_neimeng_url = "{:url('goods/pushNeimengInfo')}";
	var push_qixin_url = "{:url('goods/pushQixinInfo')}";
	var push_zongyang_url = "{:url('@zyapi/api/product')}";
	var push_beijing_url = "{:url('@bjapi/api/product')}";
	var push_changshao_url = "{:url('@api/changsha/addGoods')}";
	um.ready(function(){
		if(goods_form_value.goods_content != undefined){
			um.setContent(goods_form_value.goods_content);
		}
	})
</script>

<script src="/static/js/goods/goods_tpl.js" type="text/javascript" charset="utf-8"></script>
